56bd717d1cfa971cfbf6382c9328c6bdd1907484,Frameworks/EOF/ERRest/Sources/er/rest/ERXRestUtils.java,ERXRestUtils,dateFormat,#boolean#,117

Before Change


	// this "spaces" attribtue is stupid, i know ... this whole api is stupid.  it's a quick hack for now
	protected static String dateFormat(boolean spaces) {
		if (spaces) {
			return ERXProperties.stringForKeyWithDefault("er.rest.dateFormat", "YYYY-MM-dd HH:mm:ss z");
		}
		else {
			return ERXProperties.stringForKeyWithDefault("er.rest.dateFormat", "YYYY-MM-dd\\THH:mm:ss\\Z");

After Change



	protected static String dateFormat(boolean spaces) {
		String timestampFormat = ERXProperties.stringForKey("er.rest.dateFormat");
		if (timestampFormat == null) {
			if (spaces) {
				timestampFormat = ERXProperties.stringForKeyWithDefault("er.rest.dateFormat.secondary", "YYYY-MM-dd HH:mm:ss z");
			}
			else {
				timestampFormat = ERXProperties.stringForKeyWithDefault("er.rest.dateFormat.primary", "YYYY-MM-dd\\THH:mm:ss\\Z");